package Map;

import java.util.ArrayList;
import java.util.HashMap;

public class MapAndList {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList<>();
        HashMap<String, String> map2=new HashMap<>();
        HashMap<String, String> map=new HashMap<>();

        map.put("name","张三");
        map.put("id","1");
        map.put("age","19");

        map2.put("name","李四");
        map2.put("id","2");
        map2.put("age","19");

        arrayList.add(map);
        arrayList.add(map2);

        System.out.println(arrayList);

    }
}
